package com.wanxi.education.mapper;

import com.wanxi.education.model.pojo.CcieClassification;
import com.wanxi.education.model.vo.statistic.CoursePopilarityVO;
import com.wanxi.education.model.vo.statistic.InstitutionalRankingVO;
import com.wanxi.education.model.vo.statistic.QuantityOfOrderVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @Author: Kang
 * @Date: 2021/9/27 9:35
 * @Description: 后台统计持久层
 * @Version: 1.0
 */
public interface StatisticMapper {

    /**
     * 机构注册人数排名前七
     * @return
     */
    Set<InstitutionalRankingVO> institutionalRanking();

    /**
     * 点击量
     * 课程热度排名前七
     * @return
     */
    Set<CoursePopilarityVO> coursePopularity();

    /**
     * 订单数量（从当前日期前推一周/天的总量）
     * @return
     */
    QuantityOfOrderVO quantityOfOrder(@Param("thatDayDate") String thatDayDate);

    /**
     * 证书大类的证书数量总量
     * @return
     */
    List<CcieClassification> findAllCertType();

}
